<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>42 ES6 浏览器使用ES6模块化引入模块</title>
</head>

<body>
    <h3>1.25.3 ES6 模块化语法</h3>
    <p>模块功能主要由两个命令构成:export 和 import</p>
    <ul>
        <li>export命令用于规定模块的对外接口</li>
        <li>import命令用于输入其他模块提供的功能</li>
    </ul>
    <script type="module">
        import * as m1 from './js/m1.js';
        console.log(m1);

    </script>
</body>

</html>